package com.ojoin.trade.common.web.service.impl;

import com.ojoin.trade.common.exception.BusinessException;
import com.ojoin.trade.common.web.dao.BaseDao;
import com.ojoin.trade.common.web.dao.TbWeekEndDao;
import com.ojoin.trade.common.web.domain.TbWeekend;
import com.ojoin.trade.common.web.service.TbWeekEndService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created with IntelliJ IDEA.
 * User: Administrator
 * Date: 16-4-15
 * Time: 下午2:40
 * To change this template use File | Settings | File Templates.
 */
@Service
public class TbWeekEndServiceImpl extends BaseServiceImpl<TbWeekend> implements TbWeekEndService {

    @Autowired
    private TbWeekEndDao dao;
    @Override
    protected BaseDao<TbWeekend> getBaseDao() {
        return dao;
    }

    @Override
    public TbWeekend queryWorkDayForWeekend(String date, String year) throws BusinessException {
        return ((TbWeekEndDao)dao).queryWorkDayForWeekend(date, year);
    }
}
